package com.koicarp.university.graduate.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.koicarp.university.graduate.service.vo.userManage.UserRoleVo;
import com.koicarp.university.graudate.common.dto.SysUserDto;
import com.koicarp.university.graudate.common.entity.SysUser;
import com.koicarp.university.graudate.common.utils.UniversityResponse;
import com.koicarp.university.graudate.common.vo.UserByRoleVo;
import com.koicarp.university.graudate.common.vo.UserPasswordVo;

import java.security.Principal;
import java.util.List;

/**
 * @auther liutao
 * @Date 2020-08-24 17:16:18
 */
public interface ISysUserService extends IService<SysUser> {

    SysUserDto getUserByName(String name);

    UniversityResponse getUserListByRoleWithPage(UserByRoleVo userByRoleVo);

    UniversityResponse removeUserOne(SysUser sysUser);

    UniversityResponse removeUserList(List<String> list);

    UniversityResponse resetPassword(SysUser sysUser);

    UniversityResponse insert(UserRoleVo userRoleVo);

    UniversityResponse update(SysUser sysUser);

    UniversityResponse updateByUser(UserRoleVo userRoleVo);

    UniversityResponse updatePassword(UserPasswordVo vo);
}
